package ru.nnstu.medialib.service;

import java.util.List;

import ru.nnstu.medialib.dao.PhotoAlbumDAO;
import ru.nnstu.medialib.dao.PhotoAlbumDAOImpl;
import ru.nnstu.medialib.domain.PhotoAlbum;

public class PhotoAlbumServiceImpl implements PhotoAlbumService {
	PhotoAlbumDAO photoAlbumDAO;
	
	public PhotoAlbumServiceImpl() {
		super();
		photoAlbumDAO = new PhotoAlbumDAOImpl();
	}

	@Override
	public void addPhotoAlbum(PhotoAlbum photoAlbum) {
		photoAlbumDAO.savePhotoAlbum(photoAlbum);
	}

	@Override
	public List<PhotoAlbum> listPhotoAlbum() {
		return photoAlbumDAO.listPhotoAlbum();
	}

	@Override
	public void removePhotoAlbum(Long id) {
		photoAlbumDAO.removePhotoAlbum(id);
	}

}
